/*
 * @Author: 一路向阳 tt_sunzhenfeng@163.com
 * @Date: 2024-05-30 22:34:20
 * @LastEditors: 一路向阳 tt_sunzhenfeng@163.com
 * @LastEditTime: 2024-05-30 22:35:33
 * @FilePath: \vue3_nuxt_demo\apis\home.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { useHttpFetch, type IFetchOptions } from '@/composables/useHttpFetch';

// 获取文集列表
interface IHomeList extends IFetchOptions {
  pageNo: number;
  pageSize: number;
}
export const notesList = (opt: IHomeList) => {
  return useHttpFetch('/api/home/notes', {
    ...opt,
    method: 'GET',
    key: 'notesList'
  });
}